﻿@model IEnumerable<Guia3.Models.Vaga>
@{
    ViewBag.Title = "Vaga (Consulta)";
    Layout = "~/Views/Admin/_LayoutAdmin.cshtml";
}
<table style="text-align: left; color: #FFFFFF; border: 0; width: 100%">
    <tr>
        <td style="background: #1DA8D7; height: 5px;" colspan="4">
            Vagas (Consulta / Lista)
        </td>
    </tr>
</table>
<table width="100%">
    <tr>
        <td align="right">
            <a href="@Url.Action("New", "Vaga")">
                <button class="chrome-button">
                    Novo</button></a>
            <input class="chrome-button" type="submit" value="Listar" />
        </td>
    </tr>
</table>
@using (Html.BeginForm("VagaList", "Vaga", FormMethod.Get))
{
    @Html.ValidationSummary(true)
    <div>
        <fieldset>
            <table style="text-align: left; color: #FFFFFF; border: 0; width: 100%">
                <tr>
                    <td style="background: #1DA8D7; height: 5px;" colspan="4">
                        Filtro
                    </td>
                </tr>
            </table>
            <table width="80%">
                <tr>
                    <td align="left">
                        <div>
                            <font color="#1DA8D7">Empresa:</font>
                            @Html.TextBox("List", "", new { @style = "width: 250px;" })</div>
                    </td>
                    <td align="left">
                        <div>
                            <font color="#1DA8D7">Cargo:</font>
                            @Html.TextBox("List", "", new { @style = "width: 200px;" })
                        </div>
                    </td>
                </tr>
            </table>
        </fieldset>
    </div> 
}
<div>
    <table>
        <tr>
            <th>
                <font color="#ffffff">Id</font>
            </th>
            <th>
                <font color="#ffffff">Empresa</font>
            </th>
            <th>
                <font color="#ffffff">Cidade</font>
            </th>
            <th>
                <font color="#ffffff">Cargo</font>
            </th>
            <th>
                <font color="#ffffff">Situação</font>
            </th>
            <th>
                <font color="#ffffff">Descrição</font>
            </th>
        </tr>
</div>
@foreach (var item in Model)
{
    <tr>
        <td>@item.Id
        </td>
        <td>@item.Empresa
        </td>
        <td>@item.Cidade
        </td>
        <td>@item.Cargo
        </td>
        <td>@item.Situação
        </td>
        <td>@item.Descricao
        </td>
        <td>
            @Html.ActionLink("E", "ToEdit", new { Id = item.Id }) |
            @Html.ActionLink("X", "Delete", new { Id = item.Id })
        </td>
    </tr>
}
